package com.lanou.bean;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class CpnInfo {
    private Integer id;

    private String cpnNo;

    private String cpnTypeNo;

    private Double cpnSum;

    private String cpnContent;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date activeDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date expireDate;

    private String isUsed;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date instDate;

    private Integer instId;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date mdfDate;

    private Integer mdfId;

    private Double cpnLimit;

    private String cpnName;

    private String tpCd;

    public CpnInfo(Integer id, String cpnNo, String cpnTypeNo, Double cpnSum, String cpnContent, Date activeDate, Date expireDate, String isUsed, Date instDate, Integer instId, Date mdfDate, Integer mdfId, Double cpnLimit, String cpnName, String tpCd) {
        this.id = id;
        this.cpnNo = cpnNo;
        this.cpnTypeNo = cpnTypeNo;
        this.cpnSum = cpnSum;
        this.cpnContent = cpnContent;
        this.activeDate = activeDate;
        this.expireDate = expireDate;
        this.isUsed = isUsed;
        this.instDate = instDate;
        this.instId = instId;
        this.mdfDate = mdfDate;
        this.mdfId = mdfId;
        this.cpnLimit = cpnLimit;
        this.cpnName = cpnName;
        this.tpCd = tpCd;
    }

    public CpnInfo() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCpnNo() {
        return cpnNo;
    }

    public void setCpnNo(String cpnNo) {
        this.cpnNo = cpnNo == null ? null : cpnNo.trim();
    }

    public String getCpnTypeNo() {
        return cpnTypeNo;
    }

    public void setCpnTypeNo(String cpnTypeNo) {
        this.cpnTypeNo = cpnTypeNo == null ? null : cpnTypeNo.trim();
    }

    public Double getCpnSum() {
        return cpnSum;
    }

    public void setCpnSum(Double cpnSum) {
        this.cpnSum = cpnSum;
    }

    public String getCpnContent() {
        return cpnContent;
    }

    public void setCpnContent(String cpnContent) {
        this.cpnContent = cpnContent == null ? null : cpnContent.trim();
    }

    public Date getActiveDate() {
        return activeDate;
    }

    public void setActiveDate(Date activeDate) {
        this.activeDate = activeDate;
    }

    public Date getExpireDate() {
        return expireDate;
    }

    public void setExpireDate(Date expireDate) {
        this.expireDate = expireDate;
    }

    public String getIsUsed() {
        return isUsed;
    }

    public void setIsUsed(String isUsed) {
        this.isUsed = isUsed == null ? null : isUsed.trim();
    }

    public Date getInstDate() {
        return instDate;
    }

    public void setInstDate(Date instDate) {
        this.instDate = instDate;
    }

    public Integer getInstId() {
        return instId;
    }

    public void setInstId(Integer instId) {
        this.instId = instId;
    }

    public Date getMdfDate() {
        return mdfDate;
    }

    public void setMdfDate(Date mdfDate) {
        this.mdfDate = mdfDate;
    }

    public Integer getMdfId() {
        return mdfId;
    }

    public void setMdfId(Integer mdfId) {
        this.mdfId = mdfId;
    }

    public Double getCpnLimit() {
        return cpnLimit;
    }

    public void setCpnLimit(Double cpnLimit) {
        this.cpnLimit = cpnLimit;
    }

    public String getCpnName() {
        return cpnName;
    }

    public void setCpnName(String cpnName) {
        this.cpnName = cpnName == null ? null : cpnName.trim();
    }

    public String getTpCd() {
        return tpCd;
    }

    public void setTpCd(String tpCd) {
        this.tpCd = tpCd == null ? null : tpCd.trim();
    }

    @Override
    public String toString() {
        return "CpnInfo{" +
                "id=" + id +
                ", cpnNo='" + cpnNo + '\'' +
                ", cpnTypeNo='" + cpnTypeNo + '\'' +
                ", cpnSum=" + cpnSum +
                ", cpnContent='" + cpnContent + '\'' +
                ", activeDate=" + activeDate +
                ", expireDate=" + expireDate +
                ", isUsed='" + isUsed + '\'' +
                ", instDate=" + instDate +
                ", instId=" + instId +
                ", mdfDate=" + mdfDate +
                ", mdfId=" + mdfId +
                ", cpnLimit=" + cpnLimit +
                ", cpnName='" + cpnName + '\'' +
                ", tpCd='" + tpCd + '\'' +
                '}';
    }
}